<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>CSS预处理器--Less</title>
    <link rel="stylesheet/less" type="text/css" href="./css-less.less">
    <style>
        /* *{
            margin: 0;
            padding: 0; 
        }
        body{
            background: antiquewhite;
        }
        body .wrapper {
            margin: 0 auto;
            width: 50%;
            border: 1px solid black;
        }
        body .wrapper .nav {
            width: 500px;
            height: 100px;
            border: 1px solid red;
            text-align: center;
            line-height: 100px;
        } */
    </style>
</head>
<body>
    <div class="wrapper">
        <div class="nav">
            我是头部
        </div>
    </div>
    <script>
        /**
         * Less是什么？
         * Less是一门向后兼容的CSS扩展语言。是一种动态样式语言，属于css预处理语言的一种。
         * 
         **/ 
        
         /**
          * 怎样引入Less?(需要开启服务器下才能使用，不能在本地使用)
          * 1.<link rel="stylesheet/less" type="text/css" href="./css-less.less">
          * 2.CDN <script src="https://cdnjs.cloudflare.com/ajax/libs/less.js/3.9.0/less.min.js" >
          **/
    </script>

</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/less.js/3.9.0/less.min.js" ></script>
</html>